<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2016/8/23
 * Time: 15:33
 */

use yii\widgets\ActiveForm;
?>
<?php $form = ActiveForm::begin(['enableAjaxValidation' => true, 'enableClientValidation' => false,'options'=>['class'=>'form-validate']]); ?>
    <div class="yx-clear">
        <label class="zx-label" style="width: 20% !important"><?= $model->attributeLabels()['customer_id']; ?></label>
        <div class="zx-field-floatl" style="width: 70% !important; line-height: 30px">
            <?=isset($model->customer)?$model->customer->name:''?>
        </div>
    </div>
    <div class="yx-clear">
        <label class="zx-label" style="width: 20% !important"><?= $model->attributeLabels()['status']; ?></label>
        <div class="zx-field-floatl" style="width: 70% !important; line-height: 30px">
            <?= $form->field($model,'status',['template' => '{input}{error}{hint}'])->radioList([1=>'申请中',2=>'申请成功',3=>'申请失败'])?>
        </div>
    </div>
    <div class="yx-clear">
        <label class="zx-label" style="width: 20% !important"><?= $model->attributeLabels()['remarks']; ?></label>
        <div class="zx-field-floatl" style="width: 70% !important; line-height: 30px">
            <?= $form->field($model, 'remarks', ['template' => '{input}{error}{hint}'])->textarea(['rows' => 2, 'style' => 'width:300px;height:80px', 'class' => 'input-textarea']) ?>
        </div>
    </div>
    <div style="display: none"><button type="submit" id="dosubmit">提交</button></div>
<?php ActiveForm::end();?>